<?php
/**
 * Order constant
 *
 * @author fusq
 */
class OrderConstant
{
    public static function getPlace ($key)
    {
        $translate = Zend_Registry::get('Zend_Translate');
        $place = array(
            1 => $translate->_('dropShip') , 
            2 => $translate->_('local')
        );
        return $place[$key];
    }
    public static function getStatusList ()
    {
        $translate = Zend_Registry::get('Zend_Translate');
        $status = array(
            0 => $translate->_('order_status_0') , 
            1 => $translate->_('order_status_1') , 
            2 => $translate->_('order_status_2') , 
            3 => $translate->_('order_status_3') , 
            4 => $translate->_('order_status_4') , 
            5 => $translate->_('order_status_5') , 
            6 => $translate->_('order_status_6') , 
            7 => $translate->_('order_status_7') , 
            11 => $translate->_('order_status_11') , 
            12 => $translate->_('order_status_12') , 
            13 => $translate->_('order_status_13') , 
            14 => $translate->_('order_status_14') , 
            15 => $translate->_('order_status_15') , 
            16 => $translate->_('order_status_16') , 
            17 => $translate->_('order_status_17') , 
            21 => $translate->_('order_status_21') , 
            22 => $translate->_('order_status_22') , 
            23 => $translate->_('order_status_23') , 
            24 => $translate->_('order_status_24') , 
            25 => $translate->_('order_status_25') , 
            26 => $translate->_('order_status_26') , 
            27 => $translate->_('order_status_27')
        );
        return $status;
    }
    public static function getStatus ($key)
    {
        $status = OrderConstant::getStatusList();
        return $status[$key];
    }
    public static function getShippingExpectList ()
    {
        $translate = Zend_Registry::get('Zend_Translate');
        $expect = array(
            1 => $translate->_('shipping_expect_1') , 
            2 => $translate->_('shipping_expect_2') , 
            3 => $translate->_('shipping_expect_3') , 
            4 => $translate->_('shipping_expect_4') , 
            5 => $translate->_('shipping_expect_5') , 
            6 => $translate->_('shipping_expect_6')
        );
        return $expect;
    }
    public static function getShippingExpect ($key)
    {
        $expect = OrderConstant::getShippingExpectList();
        return $expect[$key];
    }
    public static function getPaymentMethodList ()
    {
        $translate = Zend_Registry::get('Zend_Translate');
        $payMethod = array(
            1 => $translate->_('payment_method_1') , 
            2 => $translate->_('payment_method_2') , 
            3 => $translate->_('payment_method_3') , 
            4 => $translate->_('payment_method_4') , 
            5 => $translate->_('payment_method_5') , 
            11 => $translate->_('payment_method_11') , 
            12 => $translate->_('payment_method_12') , 
            13 => $translate->_('payment_method_13') , 
            14 => $translate->_('payment_method_14') , 
            15 => $translate->_('payment_method_15') , 
            16 => $translate->_('payment_method_16') , 
            17 => $translate->_('payment_method_17')
        );
        return $payMethod;
    }
    public static function getPaymentMethod ($key)
    {
        $payMethod = OrderConstant::getPaymentMethodList();
        return $payMethod[$key];
    }
    public static function getShippingMethodList ()
    {
        $translate = Zend_Registry::get('Zend_Translate');
        $expect = array(
            1 => $translate->_('shipping_method_1') , 
            2 => $translate->_('shipping_method_2') , 
            3 => $translate->_('shipping_method_3') , 
            4 => $translate->_('shipping_method_4') , 
            5 => $translate->_('shipping_method_5') ,
            6 => $translate->_('shipping_method_6') ,
            7 => $translate->_('shipping_method_7') ,
            8 => $translate->_('shipping_method_8')
        );
        return $expect;
    }
    public static function getShippingMethod ($key)
    {
        $expect = OrderConstant::getShippingMethodList();
        return $expect[$key];
    }
    public static function getPackageStatusList ()
    {
        $translate = Zend_Registry::get('Zend_Translate');
        $packageStatus = array(
            0 => $translate->_('psShipping') , 
            1 => $translate->_('psShipped')
        );
        return $packageStatus;
    }
    public static function getPackageStatus ($key)
    {
        $packageStatus = OrderConstant::getPackageStatusList();
        return $packageStatus[$key];
    }
    public static function getItemStatusList ()
    {
        $translate = Zend_Registry::get('Zend_Translate');
        $itemStatus = array(
            0 => $translate->_('isActive') , 
            1 => $translate->_('isCancel')
        );
        return $itemStatus;
    }
    public static function getItemStatus ($key)
    {
        $itemStatus = OrderConstant::getItemStatusList();
        return $itemStatus[$key];
    }
}